package com.ad_hccm.service.impl.GeneralInformation;

import com.ad_hccm.dao.GeneralInformation.MenstruationDao;
import com.ad_hccm.domain.GeneralInformation.Menstruation;
import com.ad_hccm.service.GeneralInformation.MenstruationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO 月经ServiceImpl
 */
@Service
public class MenstruationServiceImpl implements MenstruationService {
    @Autowired
    private MenstruationDao menstruationDao;

    @Override
    public boolean save(Menstruation menstruation) {
        return menstruationDao.save(menstruation);
    }

    @Override
    public boolean update(Menstruation menstruation) {
        return menstruationDao.update(menstruation);
    }

    @Override
    public Menstruation getById(String id) {
        return menstruationDao.getById(id);
    }

    @Override
    public List<Menstruation> getAll() {
        return menstruationDao.getAll();
    }
}
